![]() |
Sensor Fusion for Kinetis MCUs (ISSDK/KSDK version)
|
Include dependency graph for control.c:Go to the source code of this file.
Macros | |
| #define | F_USE_WIRELESS_UART 0x0001 |
| #define | F_USE_WIRED_UART 0x0002 |
| #define | CONTROL_BAUDRATE 115200 |
Functions | |
| void | myUART_WriteByte (UART_Type *base, uint8_t data) |
| int8_t | writeControlPort (ControlSubsystem *pComm, uint8_t buffer[], uint16_t nbytes) |
| int8_t | writeWirelessPort (uint8_t buffer[], uint16_t nbytes) |
| void | WIRELESS_UART_IRQHandler (void) |
| void | BlueRadios_Init (void) |
| void | echo (uint8_t data) |
| void | WIRED_UART_IRQHandler (void) |
| int8_t | initializeControlPort (ControlSubsystem *pComm) |
Variables | |
| uart_handle_t | wired_uartHandle |
| uart_handle_t | wireless_uartHandle |
| uint8_t | sUARTOutputBuffer [256] |
| SensorFusionGlobals | sfg |
This file contains a UART implementation of the control subsystem. The command interpreter and streaming functions are contained in two separate files. So you can easily swap those out with only minor changes here.
Definition in file control.c.
| #define CONTROL_BAUDRATE 115200 |
Baudrate to be used for serial communications.
Definition at line 53 of file control.c.
Referenced by initializeControlPort().
| #define F_USE_WIRED_UART 0x0002 |
| #define F_USE_WIRELESS_UART 0x0001 |
| void BlueRadios_Init | ( | void | ) |
Used to initialize the Blue Radios Bluetooth module found on the FRDM-FXS-MULT2-B sensor shield from NXP.
Definition at line 132 of file control.c.
Referenced by initializeControlPort().
Here is the call graph for this function:
Here is the caller graph for this function:| void echo | ( | uint8_t | data | ) |
| int8_t initializeControlPort | ( | ControlSubsystem * | pComm | ) |
Initialize the control subsystem and all related hardware.
Call this once to initialize structures, ports, etc.
| pComm | pointer to the control subystem structure |
Definition at line 182 of file control.c.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void myUART_WriteByte | ( | UART_Type * | base, |
| uint8_t | data | ||
| ) |
Definition at line 68 of file control.c.
Referenced by writeControlPort(), and writeWirelessPort().
Here is the caller graph for this function:| void WIRED_UART_IRQHandler | ( | void | ) |
Definition at line 158 of file control.c.
Here is the call graph for this function:| void WIRELESS_UART_IRQHandler | ( | void | ) |
Definition at line 110 of file control.c.
Here is the call graph for this function:| int8_t writeControlPort | ( | ControlSubsystem * | pComm, |
| uint8_t | buffer[], | ||
| uint16_t | nbytes | ||
| ) |
Definition at line 79 of file control.c.
Referenced by initializeControlPort().
Here is the call graph for this function:
Here is the caller graph for this function:| int8_t writeWirelessPort | ( | uint8_t | buffer[], |
| uint16_t | nbytes | ||
| ) |
Definition at line 99 of file control.c.
Referenced by BlueRadios_Init().
Here is the call graph for this function:
Here is the caller graph for this function:This is the primary sensor fusion data structure.
Definition at line 62 of file main_agm01_freertos_two_tasks.c.
Referenced by FXOS8700_Init(), and initializeSensors().
| uint8_t sUARTOutputBuffer[256] |
main output buffer defined in control.c
Definition at line 59 of file control.c.
Referenced by BlueRadios_Init(), fusion_task(), main(), and read_task().
| uart_handle_t wired_uartHandle |
Definition at line 55 of file control.c.
Referenced by WIRED_UART_IRQHandler().
| uart_handle_t wireless_uartHandle |
Definition at line 56 of file control.c.
Referenced by WIRELESS_UART_IRQHandler().